<template>
  <template v-if="route.path.startsWith('/user')">
    <router-view />
  </template>
  <template v-else-if="route.path.startsWith('/admin')">
    <router-view />
  </template>
  <template v-else>
    <BasicLayout></BasicLayout>
  </template>
</template>

<style></style>
<script setup lang="ts">
import BasicLayout from "@/layouts/BasicLayout.vue";
import { useRoute } from "vue-router";
import { getLoginUserUsingGet } from "@/api/userController";
import { useLoginUserStore } from "@/score/user";
const loginUserStore = useLoginUserStore();
loginUserStore.fetchLoginUser();

const route = useRoute();
</script>
